package tcm.com.gistone.util;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;


@Component
@Configuration
@PropertySource(value = "classpath:/config.properties")
/**
 * 路径帮助类
 * 
 * @author WangShanxi
 */
public class ConfigUtil {
	// 气象数据zipUrl
	@Value("${zipURL}")
	private String zipURL;

	@Value("${RunningStatus}")
	private String RunningStatus;

	@Value("${projectName}")
	private String projectName;

	@Autowired
	private UrlUtil urlUtil;

	public String getRunningStatus() {
		return RunningStatus;
	}

	public String getProjectName() {
		return projectName;
	}

	private static String url;

	private static String  logUrl;

	public  String getUrl(){
		url = urlUtil.geturl("/");
		return url;
	}
	public String getLogUrl(){
		logUrl = urlUtil.geturl("/Files/log.txt");
		return logUrl;
	}

	public String getZipURL() {
		return zipURL;
	}
	
	
}
